
import fetch from 'common/src/utils/fetch';
import utils from 'common/src/utils/utils';
//新系统接口
export function queryMyGrades(data) {
    // let string = '';
    // for (var key in data) {
    //     if (data[key] === '' || data[key] === undefined) {
    //         continue;
    //     }
    //     if (key === 'user') {
    //         data[key] = utils.encode64(data[key])
    //     }
    //     string += `${key}=${data[key]}&`;
    // }
    return fetch({
        method: 'get',
        url: `/api/scoremanagementservice/scoreGrades/queryMyGrades?studentId=${data}`
    });
}
//老系统接口
export function getMyGrades(data) {
    // let string = '';
    // for (var key in data) {
    //     if (data[key] === '' || data[key] === undefined) {
    //         continue;
    //     }
    //     if (key === 'user') {
    //         data[key] = utils.encode64(data[key])
    //     }
    //     string += `${key}=${data[key]}&`;
    // }
    return fetch({
        method: 'get',
        url: `/api/scoremanagementservice/scoreGrades/getMyGrades?studentId=${data}`
    });
}
/**
 * 查看学生关联培养方案详情-本科生
 */
export function findStudentCultureRelById(studentId) {
    return fetch({
        url:
            '/api/cultureservice/bclStudentCultureRel/findStudentCultureRelByStudentId?stuid=' +
            studentId,
        method: 'GET'
    });
}

